pushd %WORKSPACE%\deploy
call datedir.bat

set desc_path=%product_src%\%aFile%\%appName%
if not exist %desc_path% (
	echo mkdir : %desc_path%
	md %desc_path%
 )
 
xcopy %workspace%\* %desc_path%\ /s /e /y 1>nul

set btuc_centos_product_src=%product_src%\%aFile%
del %btuc_centos_product_src%\%appName%_centos_100.tar.gz /s /q /f 1>nul
set path=%path%;C:\Program Files\7-Zip
echo path=%path%
7z a -ttar -mx %btuc_centos_product_src%\%appName%_centos_100.tar %btuc_centos_product_src%\*
7z a %btuc_centos_product_src%\%appName%_centos_100.tar.gz %btuc_centos_product_src%\%appName%_centos_100.tar
del %btuc_centos_product_src%\%appName%_centos_100.tar /s /q /f 1>nul

echo -----------copy btso build to 30.0.17.130-----------
net use \\30.0.17.130\ipc$ yanfa30.0.17.130 /user:WIN-0QMVO139MJ4\Administrator
del \\30.0.17.130\E$\Product-btcloud-uc\%appName%_centos_100.tar.gz /s /q /f 1>nul
robocopy %btuc_centos_product_src%\ \\30.0.17.130\E$\Product-btcloud-uc\ /NP /NFL /NDL /NJS
net use \\30.0.17.130\ipc$ /delete
echo -----------copy btuc to 30.0.17.130 finished-----------